﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentacion/MasterPage/MasterPage.Master" AutoEventWireup="true" CodeBehind="AgregarProfesorExistente.aspx.cs" Inherits="vudu.Presentacion.Vista.VU_06_Gestionar_Profesores.AgregarProfesorExistente" ValidateRequest="false" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=4.1.51116.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=4.1.51116.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style19
        {
            height: 35px;
            width: 25%;
        }
        .style21
        {
            width: 33%;
            height: 25px;
        }
        .style22
        {
            width: 289px;
        }
        .style25
        {
            width: 127px;
        }
        .style26
        {
            width: 385px;
        }
        .style27
        {
            width: 25%;
            height: 25px;
        }
        .style28
        {
            width: 106px;
        }
        .style29
        {
            width: 6%;
            height: 25px;
        }
        .style30
        {
            width: 130px;
        }
        .style31
        {
            width: 396px;
        }
        </style>
<script>
    var nav4 = window.event ? true : false;
    function PresionarFecha(evt) {
        var key = nav4 ? evt.wich : evt.keyCode;

        if (window.event) {
            key = evt.keyCode;
        }

        else if (evt.which) {
            key = evt.which;
        }

        if ((key < 48 && key != 8 && key != 9  && key != 39 && key != 47) || key > 57) {
            return false;
        }



        return true;
    }
        
        </script>
<script>
    var nav4 = window.event ? true : false;
    function PresionarNumero(evt) {
        var key = nav4 ? evt.wich : evt.keyCode;

        if (window.event) {
            key = evt.keyCode;
        }

        else if (evt.which) {
            key = evt.which;
        }

        if ((key < 48 && key != 8 && key != 9  && key != 39) || key > 57) {
            return false;
        }



        return true;
    }
        
        </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server" BorderStyle="Solid" BorderWidth="1px">
    <table border="0" cellspacing="0" cellpadding="0" align="center"  style="width:100%;">
        <tr>
            <td class="style21" align="right">
                 
                <a class="migaActual"><asp:Label ID="uxLabelEscuela" runat="server" 
                    ForeColor="Black" ></asp:Label></a>
                 
            </td>
        </tr>
        <tr>
            <td class="style21">
            </td>
        </tr>
        <tr>
            <td class="style21">
                <a class="tituloGeneral">Gestionar Profesor</a><a class="subtituloGeneral">Agregar Profesor Existente</a></td>
        </tr>
        <tr>
            <td class="style21" align="center">
                <asp:Label ID="LabelError" runat="server" Height="16px" Text="Label" 
                    Visible="False" Width="861px" CssClass="transaccionExitosa"></asp:Label>
                    <asp:ValidationSummary id="valSum" 
                             DisplayMode="List"
                             EnableClientScript="true"
                             CssClass="transaccionFallida"
                             HeaderText="Operación Fallida: Caracteres Introducidos Invalidos"
                             runat="server"/></td>
        </tr>
    </table>
    
     <table border="0" cellspacing="0" cellpadding="0" align="center"  style="width:100%;">
        <tr>
            <td class="style27">
                 
            </td>
            <td class="style27">
                 
                &nbsp;</td>
            <td class="style27">
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style27" align="right">
                <asp:Label ID="uxLabelCedula"  runat="server" Text="Introduzca Cedula:"></asp:Label>&nbsp;&nbsp;
            </td>
            <td class="style27">
                <asp:TextBox ID="uxCedula" runat="server" align="left" onpaste="return false" 
                    onkeypress= "return PresionarNumero(event);" Height="25px" Width="109px" 
                    MaxLength="8"></asp:TextBox> &nbsp; &nbsp;
                <asp:Button ID="Button1" runat="server" Text="Buscar" 
                    Width="78px" CssClass="boton" onclick="Button1_Click" />
            </td>
            <td class="style27">
                &nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td class="style27">
                &nbsp;</td>
            <td class="style27">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    
     <table border="0" cellspacing="0" cellpadding="0" align="center"  style="width:100%;">
        <tr>

            <td class="style21">
                
            </td>
            <td class="style21">
                <asp:Panel  ID="uxPanel1" runat="server" BorderStyle="None" 
                    BorderColor="White" Height="185px" Visible="False">
                    <fieldset>
                        <legend><strong>Profesor: </strong></legend>
                    <asp:GridView ID="uxGridProfesor" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" Height="150px">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" 
                         VerticalAlign="Middle" />
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                    </fieldset>
                </asp:Panel>
            </td>
            <td class="style21">
                &nbsp;</td>
        </tr>
        </table>
    
    <table style="width:100%;">
        <tr>
            <td class="style21">
                &nbsp;</td>
            <td class="style21">
                &nbsp;</td>
            <td class="style21">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style21">
                </td>
            <td class="style21">
                <asp:Panel  ID="uxPanel2" runat="server" BorderStyle="None" 
                    BorderColor="White" HorizontalAlign="Center" Height="185px" Width="584px" Visible="False">
                <fieldset>
                        <legend><strong>Agregar&nbsp; Datos de Contrato: </strong></legend>
                                     <table style="width:100%;">
                                         <tr>
                                             <td class="style19">
                                                 <span style="color: red">*</span>
                                                 <asp:Label ID="uxLabelTipoContrato" runat="server" Text="Tipo de Contrato:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <asp:DropDownList ID="uxContrato" runat="server" Width="170px" onpaste="return false">
                                                     <asp:ListItem Selected="True">Seleccione Contrato</asp:ListItem>
                                                     <asp:ListItem>Completo</asp:ListItem>
                                                     <asp:ListItem>Parcial</asp:ListItem>
                                                 </asp:DropDownList>
                                             </td>
                                             <td class="style19">
                                                 <asp:Label ID="uxLabelCargo" runat="server" Text="*Cargo:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <asp:DropDownList ID="uxCargo" runat="server" Height="22px" Width="170px" onpaste="return false">
                                                     <asp:ListItem Selected="True">Seleccione Cargo</asp:ListItem>
                                                     <asp:ListItem>Director</asp:ListItem>
                                                     <asp:ListItem>Profesor</asp:ListItem>
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td class="style19">
                                                 <span style="color: red">*</span>
                                                 <asp:Label ID="uxLAbelFechaInicio" runat="server" Text="Fecha de Inicio:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <%--<asp:TextBox ID="uxFechainicioContrato" runat="server" Height="20px" 

                                                     onpaste="return false" onkeypress= "return PresionarFecha(event);" Width="160px"></asp:TextBox>           --%>                                   
                                                 <asp:ScriptManager ID="ScriptManager1" runat="server"
                                                 EnableScriptGlobalization="True" ></asp:ScriptManager> 
                                                 <asp:TextBox ID="uxFechainicioContrato" runat="server" Width="160px" 
                                                     Height="17px" MaxLength="10"></asp:TextBox>
                                                 <ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="uxFechainicioContrato" />
                                             </td>
                                             <td class="style19">
                                                 <span style="color: red">*</span>
                                                 <asp:Label ID="uxLabelFechaFin" runat="server" Text="Fecha fin:"></asp:Label>
                                             </td>
                                             <td class="style19">
                                                 <asp:TextBox ID="uxFechaFinContrato" runat="server" Height="20px" Width="160px"
                                                 onpaste="return false" onkeypress= "return PresionarFecha(event);" 
                                                     MaxLength="10"></asp:TextBox>
                                                 <ajax:CalendarExtender ID="uxFechaFinContrato_CalendarExtender" runat="server" 
                                                     TargetControlID="uxFechaFinContrato" />
                                             </td>
                                         </tr>
                                     </table>
                        </fieldset>
                        </asp:Panel>
            </td>
            <td class="style21">
                &nbsp;</td>
        </tr>
    </table>
    
    <table style="width:100%;">
        <tr>
            <td class="style21">
                
                &nbsp;
            </td>
            <td class="style21" align="center">
                <asp:Button ID="uxBotonAceptarProfesor" align="center" runat="server" 
                    CssClass="boton" Text="Aceptar" Width="126px" 
                    onclick="uxBotonAceptarProfesor_Click" Visible="False"  />
            </td>
            <td class="style21">
                &nbsp;</td>
        </tr>
    </table>
    
    </asp:Panel>
</asp:Content>
